package 树;

/**
 * @author feng
 * @Date 2021/10/19 9:35
 *  树节点
 */
public class TreeNode {
    private int index;
    private TreeNode treeleft;
    private TreeNode treeRight;

    public TreeNode() {
    }

    public TreeNode(int index, TreeNode treeleft, TreeNode treeRight) {
        this.index = index;
        this.treeleft = treeleft;
        this.treeRight = treeRight;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public TreeNode getTreeleft() {
        return treeleft;
    }

    public void setTreeleft(TreeNode treeleft) {
        this.treeleft = treeleft;
    }

    public TreeNode getTreeRight() {
        return treeRight;
    }

    public void setTreeRight(TreeNode treeRight) {
        this.treeRight = treeRight;
    }
}
